import { Company } from '@prisma/client';
import { ApiProperty } from '@nestjs/swagger';
import { Exclude } from 'class-transformer';

export class companyEntity implements Company {
  constructor(partial: Partial<companyEntity>) {
    Object.assign(this, partial);
  }
  @ApiProperty()
  id: string;
  @ApiProperty()
  ImgPth: string;
  @ApiProperty()
  @Exclude()
  createdAt: Date;
  @ApiProperty({ required: false, nullable: true })
  description: string | null;
  @ApiProperty()
  name: string;
  @ApiProperty()
  @Exclude()
  updatedAt: Date;
}
